package com.tyqx.hashchaindao.mapper;


import com.tyqx.hashchainbean.module.SysUserRole;
import com.tyqx.hashchainbean.vo.SysUserRoleSave;
import com.tyqx.hashchainbean.vo.SysUserRoleVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface SysUserRoleMapper {

	public SysUserRole getById(@Param(value = "urId") Long urId)throws Exception;

	public List<SysUserRole>	getListByMap(Map<String, Object> param)throws Exception;

	public Integer getCountByMap(Map<String, Object> param)throws Exception;

	public Integer save(SysUserRoleSave sysUserRoleSave)throws Exception;

	public Integer modify(SysUserRole sysUserRole)throws Exception;

	public Integer removeById(@Param(value = "urId") Long urId)throws Exception;

	public List<SysUserRoleVO> getSysRoleByUserId(@Param(value = "urUserId") Long urUserId);

	public Integer removeByUrRoleId(@Param("urRoleId") Long urRoleId)throws Exception;

	public Integer removeByUrUserId(@Param("urUserId") Long urUserId)throws Exception;


}
